CommonUtils.regNamespace("com.im.staffLimitCommpent");

com.im.staffLimitCommpent.invoke = function () {

    var client = new com.im.common.ajax();

    function _staffLimitJudge(param){
        //鉴权结果
        var hasLimit = false;

        //调用后端
        var result = client.callAsJson("userService/queryStaffLimitInstByCond", param );
        if (result.success) {
            //TODO 返回成功，这里可以解析后端返回数据
            hasLimit = result;

        } else {
            toastr.error("服务器忙！请稍后再试！" + result.resultMsg);
        }

        return hasLimit;

    };

    return {
        staffLimitJudge: _staffLimitJudge
    }

}();
